<!DOCTYPE HTML>
<html>
<head>

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <title>MyTest001</title>
	<script type="text/javascript" src="../third-party/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="editor_api.js"></script>
</head>
<body>
    <h1>MyTest001, Gecko</h1>
	<hr>
	<div id="divConsole"></div>
    <script type="text/javascript">
	
		var agent = navigator.userAgent.toLowerCase(),
			opera = window.opera,
			browser = {
				ie		:  /(msie\s|trident.*rv:)([\w.]+)/.test(agent),
				opera	: ( !!opera && opera.version ),
				webkit	: ( agent.indexOf( ' applewebkit/' ) > -1 ),
				mac	: ( agent.indexOf( 'macintosh' ) > -1 ),
				quirks : ( document.compatMode == 'BackCompat' )
		};
		var version = null, 
			content = "";

		if ( browser.webkit ){
			version = parseFloat( agent.match( / applewebkit\/(\d+)/ )[1] );
			content += "This browser is webkit, version is " + version + "<br/>";
		}
		
		if (/chrome\/(\d+\.\d)/i.test(agent)) {
			browser.chrome = + RegExp['\x241'];
			content += "browser.chrome = " + browser.chrome;
		}
        
		console.log( browser.webkit );
		console.log( version );
	
		<!-- var gecko =( navigator.product == 'Gecko' && !browser.webkit && !browser.opera && !browser.ie); -->
		var aa = true;
		var bb = false;
		var gecko =( navigator.product == 'Gecko' && true && aa && bb);
		console.log( gecko );
		console.log( navigator.product );
		$('#divConsole').html( content );
		
		// 2018年1月7日
		var arr = [
			'aa',
			// 'bb',
			'cc'
		];
		for(var i=0;i<arr.length;i++){
			console.log( i + ": " + arr[i] );
		}
    </script>

</body>


</html>
